<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<div class="layui-tab layui-tab-brief" th:fragment="tab" th:if="${heads.size()>0}">
    <ul class="layui-tab-title">
        <li th:each="head,stat:${heads}"  th:class="${titleIndex == head.key ? 'layui-this' : ''}"><a
                th:href="|/showProduct/categorylist.action?productId=${productId}&type=${type}&titleIndex=${head.key}|"
                th:lay-text="${head.value}" th:text="${head.value}"></a></li>
    </ul>
</div>

</html>